/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anism.service;

import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import org.anism.API.AuthenticationLocal;

/**
 *
 * @author user
 */
@WebService(serviceName = "AuthenticationTest")
@Stateless()
public class AuthTest {

    @EJB
    private AuthenticationLocal authentication;

    /**
     * S'authentifier
     * @param login
     * @param pass
     * @return true si ok, false si not ok
     */
    public Boolean auth(String login, String pass) {
        return authentication.authenticate(login, pass) != null;
    }
}
